/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dao;

import java.sql.SQLException;

/**
 *
 * @author guh
 */
public interface DAO<T> {
    
    public void commit(T beans) throws SQLException;
    
    public T findByName(String name) throws SQLException;
    
    public void delete(int id);
    
    public void update(T entidade) throws SQLException;
}
